{if is_array($arrDuty)}
<div class="panel panel-default">
<div class="panel-heading">最新服务</div>

<div class="panel-body duty_list">
<ul>
{loop $arrDuty $key $item}

<li  onclick="redirect({$item['dutyid']})">

<div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

<div class="duty_title">
<div class="title">

    <div class="author"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}">{$item[user][username]}</a>{if $item['count_comment']>0}<span class="rank" style="color:#FFFFFF;float: right">{$item['count_comment']}</span>{/if}</div>
    <div class="content"  style="color:{if $item['status']==0}#c0c0c0{else}#000000{/if}" >
        {if $item['endtime']==0}{php echo date('Y-m-d',$item['begintime'])}{else}{php echo date('Y-m-d H:i',$item['begintime'])}至{php echo date('H:i',$item['endtime'])}{/if}在<a href="{tsUrl('duty','index',array('groupid'=>$item['groupid']))}">{php echo $item['address']}</a>执行{$item['cate']}，{if $item['commute']==0}服务{php echo $item['period']}小时{else}实际服务{$item['period']}小时，通勤时间{php echo $item['commute']}小时，合计耗时{php echo $item['term']}小时{/if}。<br/>{if $item['job']}<br/>{php echo strip_tags($item['job'])}{/if}&nbsp;&nbsp;
    </div>
    {if $item['image']}

    <div class="piclist">
        <ul>
            {loop $item['image'] $k $pic}
            <li style="border-bottom: none"><a href="{$pic}"><img style="width:100px;height: auto;position:absolute; clip:rect(0px 120px 70px 0px); " src="{$pic}"></a></li>

            {/loop}
        </ul>
    </div>
    {/if}

</div>

</div>

<div class="clear"></div>

</li>

{/loop}
    <li style="float:right;border-bottom: 0px;"><a href="{tsUrl('duty')}"><img src="{SITE_URL}public/images/right.png" style="height:15px"></img></a></li>
</ul>
</div>

</div>
{/if}
